<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:import url="/top.do"></c:import>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
	<!-- editor -->
<script src="<%=request.getContextPath() %>/js/kindeditor/kindeditor-min.js"></script>
<script  src="<%=request.getContextPath() %>/js/kindeditor/en.js"></script>
		<script>
		
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
				});
			});
			function insertAttached(src,ext){
				if(ext=="img"){
					var html = "<img src='"+src+"'/>";
				}else{
					var html = "<a href='"+src+"'>【附件：编辑附件名称】</a>";
				}
				
				editor.insertHtml(html);
			}
		</script>
<!-- end of editor -->
	</head>
	<body>
		<div id="wrap">
			<div id="top_content"> 
				<div id="content">
					<p id="whereami">
					</p>
<html:form action="/replyEdit.do?id=${id}" method="post">	
				<table class="table">
	
					<tr class="table_header">

						<td>
							<html:text property="title" maxlength="120" value="${data.title}"></html:text>
							
						</td>
					</tr>
					
					<tr class="row1">

						<td>
							<html:textarea property="content" style="width:750px;height:200px;visibility:hidden;" cols="80" rows="30" value="${data.content}"></html:textarea>
						</td>
					</tr>
					<tr class="row1">

						<td>
						<iframe width="600" height="200" src="<%=request.getContextPath() %>/attachedUpload.do">
							
						</iframe>
						</td>
					</tr>
					<tr>
					<td><html:submit value="确定"></html:submit> <html:reset value="清除"></html:reset> </td>
					
					</tr>
				</table>
</html:form>	
				<p></p>
				</div>
			</div>
	
		</div>
	</body>
</html>
<c:import url="/foot.do"></c:import>